#ifndef AIAI_FILEREAD_HPP
#define AIAI_FILEREAD_HPP

#include <iostream>

class aiai_fileread
{
public:
    aiai_fileread(std::string fileName);
    ~aiai_fileread();
    int read(unsigned char *buff,int size,long long index=-1);
    long getfilelen();
    void close();
private:
    bool isfirstread;
    std::string filename;
    FILE *fp;
    long int filelen;
};

#endif // AIAI_FILEREAD_HPP
